package com.ant.backstage.dao;

import com.ant.backstage.facade.model.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* Created by Mybatis Generator 2021/12/23
*/
public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Integer id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission record);

    List<String> findPermissionsByUid(@Param("uid") String uid);

    List<Permission> selectByids(@Param("permissionIds")  List<Integer> permissionIds);

    int selectByPerFalg(@Param("permission")String permission);

    void updateById(@Param("statusId")Integer statusId, @Param("id")Integer id);

}